import request from '@/utils/request'

// 查询条码接口配置列表
export function listInterfaceConfig(query) {
  return request({
    url: '/barcode/interfaceConfig/list',
    method: 'get',
    params: query
  })
}

// 查询条码接口配置详细
export function getInterfaceConfig(id) {
  return request({
    url: '/barcode/interfaceConfig/' + id,
    method: 'get'
  })
}

// 新增条码接口配置
export function addInterfaceConfig(data) {
  return request({
    url: '/barcode/interfaceConfig',
    method: 'post',
    data: data
  })
}

// 修改条码接口配置
export function updateInterfaceConfig(data) {
  return request({
    url: '/barcode/interfaceConfig',
    method: 'put',
    data: data
  })
}

// 删除条码接口配置
export function delInterfaceConfig(id) {
  return request({
    url: '/barcode/interfaceConfig/' + id,
    method: 'delete'
  })
}
